package com.itheima.ifdemo;

import java.util.Scanner;

public class IfDemo1 {
    public static void main(String[] args) {
        //需求：键盘录入女婿酒量，如果大于2斤，老丈人给出回应，反之，则不给
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入女婿的酒量：");
        int winevolue = sc.nextInt();
        if(winevolue > 2){
            System.out.println("小伙子，不错哟！！");
        }
        else{
            System.out.println("小伙子，你不行！");
        }
    }
}
